package com.hanson.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class OrderBean {
    private Integer id;

    private Integer merId;

    private String openId;

    private String orderId;

    private Integer goodsId;

    private String userName;

    private String userPhone;

    private String userAddress;

    private Integer totalNum;

    private Integer totalPrice;

    private Integer payPrice;

    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    private Integer payType;

    private String remark;

    private Integer orderType;

    private String groupNum;

    private Integer userScore = 0;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /****/
    private Integer addressId;
    private String goodsAttr;
    private String goodsName;
    private String statusName;
    private String image;
    private String webSinglePrice = "0.0";
    private String webTotalPrice = "0.0";
    private String webPayPrice = "0.0";
    private String nickName;
    private String keyWords;
    private Date shouldPayDate;
}